import pytest

from const import DATA_DIR
from lib.faker_data import faker_name
from lib.parser import write_files

path = DATA_DIR / "test_flow.json"


@pytest.fixture(scope="session", autouse=True)
def init_data():
    data = {"name": faker_name()}
    write_files(str(path), data)
